import request from '@/utils/request.js'
async function getList() {
    try {
        let res = await request.get('/category/list')
        return res.data;
    } catch (error) {
        console.error(error);
        throw error;
    }
}

export default {
    getList
}